Optimal. Leaf size=31 \[ -\frac{B \cot ^3(c+d x)}{3 d}+\frac{B \cot (c+d x)}{d}+B x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0257432, antiderivative size = 31, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 34, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.088, Rules used = {21, 3473, 8} \[ -\frac{B \cot ^3(c+d x)}{3 d}+\frac{B \cot (c+d x)}{d}+B x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 3473
Rule 8
Rubi steps
\begin{align*} \int \frac{\cot ^4(c+d x) (a B+b B \tan (c+d x))}{a+b \tan (c+d x)} \, dx &=B \int \cot ^4(c+d x) \, dx\\ &=-\frac{B \cot ^3(c+d x)}{3 d}-B \int \cot ^2(c+d x) \, dx\\ &=\frac{B \cot (c+d x)}{d}-\frac{B \cot ^3(c+d x)}{3 d}+B \int 1 \, dx\\ &=B x+\frac{B \cot (c+d x)}{d}-\frac{B \cot ^3(c+d x)}{3 d}\\ \end{align*}
Mathematica [C] time = 0.0152082, size = 34, normalized size = 1.1 \[ -\frac{B \cot ^3(c+d x) \text{Hypergeometric2F1}\left (-\frac{3}{2},1,-\frac{1}{2},-\tan ^2(c+d x)\right )}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.044, size = 27, normalized size = 0.9 \begin{align*}{\frac{B}{d} \left ( -{\frac{ \left ( \cot \left ( dx+c \right ) \right ) ^{3}}{3}}+\cot \left ( dx+c \right ) +dx+c \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.80508, size = 51, normalized size = 1.65 \begin{align*} \frac{3 \,{\left (d x + c\right )} B + \frac{3 \, B \tan \left (d x + c\right )^{2} - B}{\tan \left (d x + c\right )^{3}}}{3 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.67942, size = 212, normalized size = 6.84 \begin{align*} \frac{4 \, B \cos \left (2 \, d x + 2 \, c\right )^{2} + 2 \, B \cos \left (2 \, d x + 2 \, c\right ) + 3 \,{\left (B d x \cos \left (2 \, d x + 2 \, c\right ) - B d x\right )} \sin \left (2 \, d x + 2 \, c\right ) - 2 \, B}{3 \,{\left (d \cos \left (2 \, d x + 2 \, c\right ) - d\right )} \sin \left (2 \, d x + 2 \, c\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.32903, size = 93, normalized size = 3. \begin{align*} \frac{B \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{3} + 24 \,{\left (d x + c\right )} B - 15 \, B \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + \frac{15 \, B \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - B}{\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{3}}}{24 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]